import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {RouterModule, Routes} from "@angular/router";
import {TableListComponent} from "./table-list/table-list.component";
import {CombineTableComponent} from "./combine-table/combine-table.component";
import {ReserveListComponent} from "./reserve/reserve-list/reserve-list.component";
import {ReserveSubmitComponent} from "./reserve/reserve-submit/reserve-submit.component";
import {ChangeTableComponent} from "./change-table/change-table.component";
import {TableReserveComponent} from "./table-reserve/table-reserve.component";
let TableRouting: Routes = [
  {path: '', redirectTo: 'table-list', pathMatch: 'full'}
  , {path: 'table-list', component: TableListComponent} // 桌子列表
  , {path: 'change-table', component: ChangeTableComponent} // 换桌记录
  , {path: 'combine-table', component: CombineTableComponent} // 并桌记录
  , {path: 'reserve-submit', component: ReserveSubmitComponent} // 预定提交
  , {path: 'reserve-list', component: ReserveListComponent} // 全部预定列表
  , {path: 'table-reserve', component: TableReserveComponent} // 当前桌子的预定列表
];
@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(TableRouting)
  ],
  declarations: [],
  exports: [RouterModule]
})
export class TableRoutingModule { }
